<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
    <link rel="stylesheet" href="./assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="./assets/css/login.css">
</head>
<body>
    <!-- 头部的 Logo 区域 -->
    <div class="layui-main">
        <img src="/assets/images/logo.png" alt="" />
        <!-- 登录注册区域 -->
        <div class="loginAndRegBox">
            <div class="title-box"></div>
            <!-- 注册盒子 -->
            <form id="red_form2" style="display: none;"  class="layui-form form-2" action="">
              <!-- 输入用户名部分 -->
                <div class="layui-form-item">
                  <div >
                    <i class="layui-icon layui-icon-username"></i>  
                    <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                  </div>
                </div>
                <!-- 密码框部分 -->
                <div class="layui-form-item">
                    <div >
                      <i class="layui-icon layui-icon-password"></i>   
                      <input  type="password" name="password" required  lay-verify="required|pass" placeholder="请输入密码" autocomplete="off" class="layui-input">
                    </div>
                  </div>
                  <!-- 请再次输入密码框部分 -->
                  <div class="layui-form-item  " >
                    <div >
                      <i class="layui-icon layui-icon-password"></i>   
                      <!-- lay-verify="required"表单验证，在leyui的内置模块里 -->
                      <input type="password" name="password" required  lay-verify="required|pass|repwd" placeholder="请再次输入密码" autocomplete="off" class="layui-input bbb">
                    </div>
                  </div>
                  <!-- 提交按钮部分 -->
                  <button type="submit"  class="layui-btn layui-btn-normal  layui-btn-fluid   deng"  style="display: block;"   lay-submit>登录</button>
                  <button type="submit"  style="display: none;"  class="layui-btn layui-btn-normal  layui-btn-fluid  zhu"  lay-submit>注册</button>
            </form>
            <!-- 登录盒子 -->
            <form  id="red_form1" class="layui-form form-1" action="">
              <!-- 输入用户名部分 -->
                <div class="layui-form-item">
                  <div >
                    <i class="layui-icon layui-icon-username"></i>  
                    <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                  </div>
                </div>
                <!-- 密码框部分 -->
                <div class="layui-form-item">
                    <div >
                      <i class="layui-icon layui-icon-password"></i>   
                      <input  type="password" name="password" required  lay-verify="required|pass" placeholder="请输入密码" autocomplete="off" class="layui-input">
                    </div>
                  </div>
                  <!-- 提交按钮部分 -->
                  <button type="submit"  class="layui-btn layui-btn-normal  layui-btn-fluid  deng"  style="display: block;"   lay-submit>登录</button>
                  <button type="submit"  style="display: none;"  class="layui-btn layui-btn-normal  layui-btn-fluid  zhu"  lay-submit>注册</button>
            </form>
            <!-- 去注册账号 -->
            <div class="login-box" style="text-align: right;">
                <a href="javascript:;" id="link_reg">去注册账号</a>
            </div>
            <!-- 去登录 -->
            <div class="reg-box" style="display:none;text-align: right">
                <a href="javascript:;" id="link_login">去登录</a>
            </div>
        </div>
    </div>
    <!-- 导入leyui的js -->
    <script src="./assets/lib/layui/layui.all.js"></script>
    <script src="./assets/lib/jquery.js"></script>
    <script src="./assets/js/login.js"></script>
</body>
</html>